const gulp = require('gulp');
const sftp = require('gulp-sftp');

gulp.task('upload-test', function () {
  return gulp.src('./dist/**')
    .pipe(sftp({
      host: '47.97.184.199',
      user: 'root',
      pass: 'e2dcHPdVp3*h',
      port: 22,
      remotePath: '/home/yat-eip/web'
    }));
});

gulp.task('upload-prod', function () {
  return gulp.src('./dist/**')
    .pipe(sftp({
      host: 'mail.yattool.net',
      user: 'yat',
      pass: 'yat.123',
      port: 2225,
      remotePath: '/home/yat/yat-eip/web'
    }));
});
